import request from '@/utils/request'

export function getAll(params) {
  params.page = 0
  params.size = 10
  return request({
    url: 'api/recruit/all',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: 'api/recruit/add',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/recruit/delete',
    method: 'post',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/recruit/edit',
    method: 'post',
    data
  })
}

export function distribution(data) {
  return request({
    url: 'api/recruit/distribution/',
    method: 'post',
    data
  })
}

export default { getAll, add, edit, del, distribution }
